﻿using System.ComponentModel.DataAnnotations;

namespace Shop.Model.Dto.Admin.Use;

public class WelletAdjustDto
{
    /// <summary>
    /// 用户Id
    /// </summary>
    [Required(ErrorMessage = "用户Id不可为空")]
    public long UId { get; set; }
    
    /// <summary>
    /// 操作
    /// 1：增加
    /// 2：减少
    /// </summary>
    [Required(ErrorMessage = "操作不可为空")]
    public int State { get; set; }
    
    /// <summary>
    /// 金额
    /// </summary>
    [Required(ErrorMessage = "金额不可为空")]
    public decimal Amount { get; set; }
    
    /// <summary>
    /// 描述
    /// </summary>
    [Required(ErrorMessage = "描述不可为空")]
    public string Title { get; set; }
    
    /// <summary>
    /// 图片
    /// </summary>
    public string? Img { get; set; }
}